<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/4/16 0016
  Time: 下午 7:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="/user/save" method="post">

        <div>
            用户名: <input type="text" name="uname">
        </div>
        <div>
            密码: <input type="text" name="password">
        </div>
        <div>
                姓名: <input type="text" name="name">
        </div>

        <div>
                年龄: <input type="text" name="age">
        </div>

        <div>
            性别:<select name="sex"  id="select">
                    <option name="" value="">请选择性别</option>
                    <option name="sex" value="1">男</option>
                    <option name="sex" value="0">女</option>
                </select>
        </div>
        <div>
                联系电话: <input type="text" name="phone">
        </div>
        <div>
            Emall: <input type="text" name="emall">
        </div>

        <div>
                部门: <select name="deparment" >
                            <option name="" value="">请选择班级</option>
                            <c:forEach items="${deparment}" var="deparment">
                                <option value="${deparment.id}"> ${deparment.name}</option>
                            </c:forEach>
                        </select>
        </div>
        <div>
            角色: <input type="text" name="juese">
        </div>
        <div>
                <button type="submit" id="submit">提交</button>
        </div>

</form>


</body>
</html>
